package com.xul.srb.core.mapper;

import com.xul.srb.core.pojo.entity.UserAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;

import java.math.BigDecimal;

/**
 * <p>
 * 用户账户 Mapper 接口
 * </p>
 *
 * @author xul
 * @since 2021-11-06
 */
public interface UserAccountMapper extends BaseMapper<UserAccount> {

    /**
     * 保存账号信息
     *
     * @param id
     * @param chargeAmt
     * @param freezeAmount
     */
    void updateAccount(@Param("id") Long id, @Param("chargeAmt") String chargeAmt, @Param("freezeAmount") BigDecimal freezeAmount);

    /**
     * 保存账号信息
     *
     * @param id
     * @param chargeAmt
     * @param chargeAmt
     */
    void updateAccountLend(@Param("id") Long id, @Param("chargeAmt") BigDecimal chargeAmt, @Param("freezeAmount") BigDecimal freezeAmount);
}
